package com.project.bookstore.book.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ApiModel("图书详情")
public class BookDetailVO implements Serializable {
    @ApiModelProperty("图书ID")
    private Long id;
    @ApiModelProperty("图书分类")
    private String classify;
    @ApiModelProperty("图书名")
    private String bookName;
    @ApiModelProperty("图书国际书号")
    @JsonProperty(value = "ISBN")
    private String ISBN;
    @ApiModelProperty("图书作者")
    private String author;
    @ApiModelProperty("图书版次")
    private String edition;
    @ApiModelProperty("图书新旧程度")
    private String degree;
    @ApiModelProperty("图书出版社")
    private String press;
    @ApiModelProperty("图书价格")
    private BigDecimal price;
    @ApiModelProperty("图书原价")
    private BigDecimal oldPrice;
    @ApiModelProperty("图书简介")
    private String info;
    @ApiModelProperty("图书库存")
    private Integer PCS;
    @ApiModelProperty("图书销量")
    private Integer saleCount;
    @ApiModelProperty("图书图片")
    private String picture;
    @ApiModelProperty("图书开本")
    private Integer folio;
    @ApiModelProperty("图书纸张")
    private String paper;
    @ApiModelProperty("图书类别ID")
    private Long classifyId;
    @ApiModelProperty("图书是否启用")
    private Integer isEnable;
    @ApiModelProperty("图书是否销售")
    private Integer isMarketable;
    @ApiModelProperty("图书创建时间")
    private LocalDateTime created;
    @ApiModelProperty("图书修改时间")
    private LocalDateTime modified;
}
